#ifndef JTCPSOCKET_H
#define JTCPSOCKET_H

#include <JXQNetwork/JAbstractSocket>

namespace JXQ
{

class JTcpSocketPrivate;

class JXQLIB_EXPORT JTcpSocket : public JAbstractSocket
{
public:
	JTcpSocket();
	~JTcpSocket();

public:
	bool connectToHost(const JString &ip, uint16_t port);
	bool connectToHost(const JHostAddr &ip, uint16_t port);

private:
	J_DISABLE_COPY(JTcpSocket)
	JTcpSocketPrivate *d_ptr;
};

} // namespace JXQ

#endif //JTCPSOCKET_H
